<template>
  <div style="width:100%;overflow-x:hidden;overflow-y:auto">
  </div>
</template>

<script>
  export default {
    mounted() {
      this.$store.commit('set_title', '')

      var code = ''
      location.search && location.search.substring(1).split('&').forEach(kv => {
        (kv.split('=')[0] == 'code') && (code = kv.split('=')[1])
      })
      if (code == '') {
        location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxae9c0d778b917c56&redirect_uri=https://etourly.com?path=/redPacket&response_type=code&scope=snsapi_base&state=state#wechat_redirect'
        return
      }

    }
  }
</script>
